package Demo22;

public class Cat extends  Animal {//子类继承父类；Cat extends  Animal

    @Override//覆盖重写；
    public   void eat(){
        System.out.println("猫吃鱼；");
    };

}
